package day07;

/**
 * @author Huangjin
 * @version 1.0
 * describe:重载的演示
 * @date 2023/2/20 9:31
 */
public class OverLoadDemo {
    public static void main(String[] args) {
        show();
        show(25);
        show("Mara",20);
        show(25,"Jack");
        show("Jack");
        //show(3.15);//编译错误，没有此类型参数
    }
    public static void show(){}
    public static void show(String name){}
    public static void show(int age){}
    public static void show(String name,int age){}
    public static void show(int age,String name){}
    //public static int show(){return 1;}//编译错误，重载与返回值类型无关
    //public static void show(String address){}//编译错误，重载与参数名称无关
}
